import React from 'react';
import {View, Text,TouchableOpacity} from 'react-native';
import ChirdD from './ChirdD'


export default class Chird3 extends React.Component {

  state = {
    count: 0,
  }

  render() {
    console.log('Chird3 render', this.state.count);

    return (
      <View>
        <TouchableOpacity
          onPress={() => {
            const count = this.state.count+1;
            this.setState({
              count:count
            })
          }}>
          <Text>二级页面</Text>
          <Text>Chird3</Text>
        </TouchableOpacity>
        <ChirdD/>
      </View>
    )
  }
}
